package misc;

public class number_reversed {

	public static void main(String[] args) {

		int num = 12045;
		int remainder = 0;
		int reverse_number = 0;

		while (num > 0) {

			remainder = num % 10;
			reverse_number = (reverse_number * 10) + (remainder);

			num = num / 10;

		}
		System.out.println(reverse_number);
	}

}
